﻿using System;

namespace _04组合模式
{

    public abstract class Component
    {
        protected  string _name;
        public Component (string name)
        {
            this._name = name;
        }
        public abstract void Add(Component c);
        public abstract void Remove(Component c);
        public abstract void DisPlay(int dept);
    }
}
